package com.rui.shangXueTang.hashTable;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : TestApp
 * @createTime : [2022/2/16 16:47]
 * @description : [描述该类的功能]
 */

public class TestApp {
    public static void main(String[] args) {

        HashTable hashTable = new HashTable(10);

        //添加学员节点
        Student student1 = new Student(1,"张三");
        Student student2 = new Student(2,"李四");
        Student student3 = new Student(3,"王五");
        Student student4 = new Student(4,"赵六");
        Student student5 = new Student(14,"牛马");

        hashTable.add(student1);
        hashTable.add(student2);
        hashTable.add(student3);
        hashTable.add(student4);
        hashTable.add(student5);

        hashTable.list();

        System.out.println("-----------------");

        hashTable.findById(4);
    }
}
